Class A3LMessagingInitProvider

  • All Implemented Interfaces:
    android.content.ComponentCallbacks, android.content.ComponentCallbacks2

    public class A3LMessagingInitProvider
    extends android.content.ContentProvider
    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.content.ContentProvider

        android.content.ContentProvider.CallingIdentity, android.content.ContentProvider.PipeDataWriter<T extends java.lang.Object>
    • Field Summary

      • Fields inherited from interface android.content.ComponentCallbacks2

        TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int delete​(android.net.Uri uri, java.lang.String s, java.lang.String[] strings)  
      java.lang.String getType​(android.net.Uri uri)  
      android.net.Uri insert​(android.net.Uri uri, android.content.ContentValues contentValues)  
      boolean onCreate()
      This is for initializing the A3L Messaging which initializes the application context and current platform which will be used by other A3L Messaging method.
      android.database.Cursor query​(android.net.Uri uri, java.lang.String[] strings, java.lang.String s, java.lang.String[] strings1, java.lang.String s1)
      All the methods below this point are default because we are not storing anything In future if we want cache any data like registration tokens, subscription request which can be retried after sometime or metrics data which can be flushed later.
      int update​(android.net.Uri uri, android.content.ContentValues contentValues, java.lang.String s, java.lang.String[] strings)  
      • Methods inherited from class android.content.ContentProvider

        applyBatch, applyBatch, attachInfo, bulkInsert, call, call, canonicalize, clearCallingIdentity, delete, dump, getCallingAttributionSource, getCallingAttributionTag, getCallingPackage, getCallingPackageUnchecked, getContext, getPathPermissions, getReadPermission, getStreamTypes, getWritePermission, insert, onCallingPackageChanged, onConfigurationChanged, onLowMemory, onTrimMemory, openAssetFile, openAssetFile, openFile, openFile, openPipeHelper, openTypedAssetFile, openTypedAssetFile, query, query, refresh, requireContext, restoreCallingIdentity, shutdown, uncanonicalize, update
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • A3LMessagingInitProvider

        public A3LMessagingInitProvider()
    • Method Detail

      • onCreate

        public boolean onCreate()
        This is for initializing the A3L Messaging which initializes the application context and current platform which will be used by other A3L Messaging method. Any operation which needs to be performed at the start of the application can added in this method.
        Specified by:
        onCreate in class android.content.ContentProvider
        Returns:
      • query

        @Nullable
        public android.database.Cursor query​(@NonNull
                                             android.net.Uri uri,
                                             @Nullable
                                             java.lang.String[] strings,
                                             @Nullable
                                             java.lang.String s,
                                             @Nullable
                                             java.lang.String[] strings1,
                                             @Nullable
                                             java.lang.String s1)
        All the methods below this point are default because we are not storing anything In future if we want cache any data like registration tokens, subscription request which can be retried after sometime or metrics data which can be flushed later. For more details read about Content Providers https://developer.android.com/guide/topics/providers/content-provider-basics
        Specified by:
        query in class android.content.ContentProvider
      • getType

        @Nullable
        public java.lang.String getType​(@NonNull
                                        android.net.Uri uri)
        Specified by:
        getType in class android.content.ContentProvider
      • insert

        @Nullable
        public android.net.Uri insert​(@NonNull
                                      android.net.Uri uri,
                                      @Nullable
                                      android.content.ContentValues contentValues)
        Specified by:
        insert in class android.content.ContentProvider
      • delete

        public int delete​(@NonNull
                          android.net.Uri uri,
                          @Nullable
                          java.lang.String s,
                          @Nullable
                          java.lang.String[] strings)
        Specified by:
        delete in class android.content.ContentProvider
      • update

        public int update​(@NonNull
                          android.net.Uri uri,
                          @Nullable
                          android.content.ContentValues contentValues,
                          @Nullable
                          java.lang.String s,
                          @Nullable
                          java.lang.String[] strings)
        Specified by:
        update in class android.content.ContentProvider